Skip to content

Conversation

@amanmahajan7
Copy link
Collaborator

@amanmahajan7 amanmahajan7 commented Oct 23, 2025

https://vitest.dev/guide/browser/visual-regression-testing.html#visual-regression-testing

This PR sets up VRT. We can use Update Screenshots label to update screenshots when needed

@amanmahajan7 amanmahajan7 self-assigned this Oct 23, 2025

env:
AUTHOR_NAME: 'github-actions[bot]'
AUTHOR_EMAIL: '41898282+github-actions[bot]@users.noreply.github.com'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/>
);

await expect(getGrid()).toMatchScreenshot('basic-grid');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: amanmahajan7
@amanmahajan7 amanmahajan7 marked this pull request as ready for review October 24, 2025 15:33
Co-authored-by: amanmahajan7
@amanmahajan7 amanmahajan7 requested a review from nstepien October 24, 2025 17:35
Co-authored-by: amanmahajan7
@amanmahajan7 amanmahajan7 enabled auto-merge (squash) October 27, 2025 16:05
@amanmahajan7 amanmahajan7 merged commit fbc541e into main Oct 27, 2025
2 checks passed
@amanmahajan7 amanmahajan7 deleted the am-vrt branch October 27, 2025 16:07
amanmahajan7 added a commit that referenced this pull request Oct 27, 2025
This reverts commit fbc541e.
amanmahajan7 added a commit that referenced this pull request Oct 27, 2025
* Initial commit

* Fix typo

* Fix typo

* Move visual folder inside test folder

* Use version instead of SHA

* eslint fixes

* Fix path

* Ignore __screenshots__ in the browser folder

* Update screenshots

Co-authored-by: amanmahajan7

* Update node version

* Delete screenshots

* Update screenshots

Co-authored-by: amanmahajan7

* Try `workflow_dispatch`

* delete screenshots

* Add `workflow_dispatch:`

* Update screenshots

Co-authored-by: amanmahajan7

* Remove `workflow_dispatch:`

* try to trigger ci workflow

* add test

* Update screenshots

Co-authored-by: nstepien

* add permission

* Update screenshots

Co-authored-by: nstepien

* ci: add workflow_dispatch trigger

* geren

* Update screenshots

Co-authored-by: nstepien

* add workflow_dispatch there

* Remove the color test

* Manually delete screenshots for now

* Remove directory before generating screenshots

* rename screenshots

* Fix command

* Update screenshots

Co-authored-by: amanmahajan7

* Revert name

* Update screenshots

Co-authored-by: amanmahajan7

* Update .github/workflows/update-screenshots.yml

Co-authored-by: Nicolas Stepien <[email protected]>

* fix viewport

* Remove `--set-upstream`

* Update screenshots

Co-authored-by: amanmahajan7

* Update test/visual/basicGrid.test.tsx

Co-authored-by: Nicolas Stepien <[email protected]>

* Try gh cli

* Revert "Try gh cli"

This reverts commit 6928269.

* try `gh pr edit`

* Remove invalid token

* Add env

* Update screenshots

Co-authored-by: amanmahajan7

* only remove the label if it's a pr build

* nit

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants